package lt.ntec.danblog.server.core.model;

import java.util.Date;
import java.util.List;

public interface User extends Persistable {

    void setLastAccessDate(Date date);

    Date getLastAccessDate();

    String getName();

    String getEmail();
    
    List<String> getRoles();

    boolean isAdmin();
    
    void setAdmin(boolean admin);
    
    void addRole(String role);
    
    void removeRole(String role);
}
